import {http} from "@/interceptor/luch-request/index.js"


// 创建
export const saveBaseApplication = (data) => {
    return http.post("api/admin/baseApplication/v1/save", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}
// 分配角色
export const saveBaseRole = (data) => {
    return http.post("api/admin/baseApplicationRole/v1/saveBatch", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}
// 编辑
export const updateBaseApplication = (data) => {
    return http.put("api/admin/baseApplication/v1/update", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}

// 列表
export const listTable = (data) => {
	return http.get("api/admin/baseApplication/v1/listTable", {
		data: data
	});
}
 
// 删除
 export const deleteActionLog = (id) => {
  	return http.delete("api/admin/ActionLog/v1/deleteActionLog/"+id, {
  		header:{
  			"content-type": "application/x-www-form-urlencoded"
  		}
  	});
 }
